package com.budwk.app.enterprise.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * 利润表(一级指标)
 */

@Data
@Accessors(chain = true)
@Table("dfxy_enterprise.zb_income_statement_base")
@Comment("利润表(一级指标)")
@ApiModel(description = "利润表(一级指标)")
public class IncomeStatementBase extends BaseCommonModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("ID")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(els = {@EL("snowflake()")}, nullEffective = true)
    private String id;

    @Column("fill_type")
    @Comment("填报类型(1:月   3：季度   5：年)")
    @ApiModelProperty(description = "填报类型")
    @ColDefine(type = ColType.INT, width = 50)
    private Integer fillType;

    @Column("fill_year")
    @Comment("填报年份")
    @ApiModelProperty(description = "填报年份")
    @ColDefine(type = ColType.INT, width = 50)
    private Integer fillYear;

    @Column("fill_value")
    @Comment("填报值")
    @ApiModelProperty(description = "填报值 如是季度  传值 1 2 3 4，月份 1 2 3 ...年：2024 2022 2223")
    @ColDefine(type = ColType.INT, width = 50)
    private Integer fillValue;

    @Column("fill_date")
    @Comment("填报时间")
    @ApiModelProperty(description = "填报时间")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String fillDate;

    @Column("operating_revenue")
    @Comment("营业收入")
    @ApiModelProperty(description = "营业收入")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String operatingRevenue;

    @Column("operating_profit")
    @Comment("营业利润")
    @ApiModelProperty(description = "营业利润")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String operatingProfit;

    @Column("profit_total")
    @Comment("利润总额")
    @ApiModelProperty(description = "利润总额")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String profitTotal;

    @Column("net_profit")
    @Comment("净利润")
    @ApiModelProperty(description = "净利润")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String netProfit;

    @Column("other_profit")
    @Comment("其他综合收益的税后净额")
    @ApiModelProperty(description = "其他综合收益的税后净额")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String otherProfit;

    @Column("comprehensive_total")
    @Comment("综合收益总额")
    @ApiModelProperty(description = "综合收益总额")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String comprehensiveTotal;

    @Column("earnings_per_share")
    @Comment("每股收益")
    @ApiModelProperty(description = "每股收益")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String earningsPeShare;

    @Column("margin_sales")
    @Comment("销售净利率")
    @ApiModelProperty(description = "销售净利率")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String marginSales;

    @Column("gross_sales")
    @Comment("销售毛利率")
    @ApiModelProperty(description = "销售毛利率")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String grossSales;

    @Column("interest_coverage")
    @Comment("已获利息倍数")
    @ApiModelProperty(description = "已获利息倍数")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String interestCoverage;

    @Column("revenue_growth")
    @Comment("营业收入增长率")
    @ApiModelProperty(description = "营业收入增长率")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String revenueGrowth;

    @Column("company_id")
    @Comment("企业id（wx_business_information表id）")
    @ApiModelProperty(description = "企业id（wx_business_information表id）")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String companyId;

    @ApiModelProperty(description = "公司名称")
    private String companyName;
}















